-- GENERATED SPELL FOR [Matis the Cruel] --


function spell0_17664(pUnit, Event) --@Matis Captured DND,n/a--
pUnit:FullCastSpellOnTarget(31336,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17664', 695, 1)
end

function Sorts_17664(pUnit, Event)
local choix_sorts_17664 = math.random(0, 0)
if choix_sorts_17664 == 0 then
pUnit:RegisterEvent('spell0_17664', 1, 1)
end
end

function mob17664_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17664', math.random(1500, 3000), 1)
end

function mob17664_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17664_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17664_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17664, 1, 'mob17664_Action')
RegisterUnitEvent(17664, 2, 'mob17664_Leave')
RegisterUnitEvent(17664, 3, 'mob17664_Kill')
RegisterUnitEvent(17664, 4, 'mob17664_Die')
